- if devise_mapping.omniauthable?
  .social-auth-links.text-center.mb-3
    p - 或者 -
    - resource_class.oauth_providers.each do |provider|
      - unless provider == :ldap
        ruby:
          name = omniauth_display_name(provider)

        a.btn.btn-icon.btn-block href="#{public_send("user_#{provider}_omniauth_authorize_path")}" class="#{provider == :google_oauth2 ? 'btn-danger' : 'btn-default'}"
          i.fab class="fa-#{name.downcase}"
          = "使用 #{name} 账号登录"

- if controller_name != 'sessions'
  p.mb-1
    = link_to "登录账户", new_session_path(resource_name)

- if Setting.registrations_mode && devise_mapping.registerable? && controller_name != 'registrations'
  p.mb-1
    = link_to "注册账号", new_registration_path(resource_name)

- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations'
  p.mb-1
    = link_to "忘记密码?", new_password_path(resource_name)

- if devise_mapping.confirmable? && controller_name != 'confirmations'
  p.mb-1
    = link_to "没有收到确认邮件?", new_confirmation_path(resource_name)

- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks'
  p.mb-0
    = link_to "没有收到解锁账号确认邮件?", new_unlock_path(resource_name)

